package com.googlecode.javaexamples.multithreading.ringbuffer;

// Synchronized wrapper for RingBuffer class
public class SynchronizedRingBuffer<T> extends RingBuffer<T> {

    public SynchronizedRingBuffer(int size) {
        super(size);
    }

    public SynchronizedRingBuffer() {
        super();
    }

    public synchronized T pop() {
        return super.pop();
    }

    public synchronized void push(T item) {
        super.push(item);
    }

    public synchronized int elementCount() {
        return super.elementCount();
    }

    public synchronized int size() {
        return super.size();
    }
}
